<template>
  <div>
    <div>测试下载</div>
    <!--    <ul>-->
    <!--      <li v-for="(item, index) in tenEnclosure.rows" :key="index">-->
    <!--        <a target="_self">{{ item.tenPencSourname }}</a>-->
    <!--        <span @click="toxiazai(index,4,item.tenureId)" title="下载"></span>-->
    <!--        <span @click="toshanchu(index,4,item.tenureId)" title="删除"></span>-->
    <!--      </li>-->
    <!--    </ul>-->
    <el-button @click="Download('infer_9.jpg')">下载</el-button>

  </div>
</template>

<script>
import axios from "axios";

export default {
  name: "DownloadModule",
  data() {
    return {}
  },
  methods: {
    Download(name) {
      console.log(name);
      window.open(axios.defaults.baseURL + "download?name=" + name, '_blank');
      // let new_page=this.$router.resolve({
      //   path: axios.defaults.baseURL + "download/" + name
      // })
      // window.open(new_page.href,'_blank')
      // this.$router.replace(axios.defaults.baseURL+"download/"+name);
    }
  }
}
</script>

<style scoped>

</style>